import request from "@/utils/request";

export function list(data) {
  return request({
    url: '/base-sixreal/population/list',
    method: 'post',
    data
  })
}

export function nationList() {
  return request({
    url: '/base-sixreal/population/list',
    method: 'get'
  })
}

export function findAll() {
  return request({
    url: '/base-sixreal/population/findAll',
    method: 'get'
  })
}

export function findByDivisionId(id) {
  return request({
    url: '/base-sixreal/plot/findByDivisionId/'+id,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/base-sixreal/population/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/base-sixreal/population/update',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: '/base-sixreal/population/delete/'+id,
    method: 'get'
  })
}

export function importResponse(data) {
  return request({
    url: '/base-sixreal/population/import',
    method: 'post',
    data
  })
}

export function exportResponse(data) {
  return request({
    url: '/base-sixreal/population/exportFile',
    method: 'post',
    data
  })
}

export function dotransfer(data) {
  return request({
    url: '/base-sixreal/population/dotransfer',
    method: 'post',
    data
  })
}

export function findTagList() {
  return request({
    url: '/base-sixreal/tag/findAll',
    method: 'get'
  })
}

export function plotList() {
  return request({
    url: '/base-sixreal/plot/findAll',
    method: 'get'
  })
}

export function findCount() {
  return request({
    url: '/base-sixreal/population/findCount',
    method: 'get'
  })
}
export function findTodayAddCount() {
  return request({
    url: '/base-sixreal/population/findTodayAddCount',
    method: 'get'
  })
}

